package com.hhkj.admin.student.model.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hhkj.admin.student.model.dopo.StudentPo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * SaleStudentRes
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2024/1/17 8:25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SaleStudentRes extends StudentPo {

    /** 课程信息列表 */
    private List<SaleStudentCourseRes> courseList;

    @JsonIgnore
    @Override
    public String getPassword() {
        return super.getPassword();
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonIgnore(value = false)
    @Override
    public Date getCreateTime() {
        return super.getCreateTime();
    }
}
